package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("devices")
public class Devices {

    @TableId(value = "device_id")
    private String deviceId;

    @TableField("device_name")
    private String deviceName;

    @TableField("device_type")
    private String deviceType;

    @TableField("status")
    private String status;

    @TableField("control_mode")
    private String controlMode;

    @TableField("location")
    private String location;

    @TableField("threshold")
    private Long threshold;

    @TableField(exist = false)
    private String name;

    @TableField(exist = false)
    private  Long value;

}
